package tld.test.menu
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	import tld.test.interpreter.runtime.Runtime;
	
	public class ConsoleTest extends Sprite
	{
		public function ConsoleTest()
		{
			super();
			if (super.stage) this.init();
			else super.addEventListener(
				Event.ADDED_TO_STAGE, this.init);
		}
		
		private function init(event:Event = null):void
		{
			super.removeEventListener(
				Event.ADDED_TO_STAGE, this.init);
			super.stage.scaleMode = StageScaleMode.NO_SCALE;
			super.stage.align = StageAlign.TOP_LEFT;
			var console:Console = new Console(new Runtime());
			console.width = 500;
			console.y = 10;
			console.height = 300;
			super.addChild(console);
		}
	}
}